/* 共用的接口 */
import {
  getAction,
  postAction,
  putAction,
  deleteAction,
  httpAction,
} from "../utils/request.js";
// 用户信息解密;
const userDecrypt = (params) =>
  postAction("/mini/sys/operate/user_decrypt", params);

//登录
const wxLogin = (params) => postAction("/mini/sys/operate/login", params);

//退出登录
const logout = (params) => postAction("/mini/sys/operate/logout", params);

// 获取字典值
const findEnableDictItemsbyCode = (code) =>
  getAction(`/mini/sys/dict/find_enable_dict_items_by_code?code=${code}`);

// 根据业务类型及编号 获取图片
const imagesPathList = (params) =>
  getAction("/mini/sys/images_path/list", params);

export {
  userDecrypt,
  wxLogin,
  logout,
  findEnableDictItemsbyCode,
  imagesPathList,
};
